package cn.xinfei.xdecision.common.model.datax.consts;

import io.micrometer.core.instrument.Tags;

public class VarPrometheusTagsConst {

    public static final Tags VAR_API_TOTAL_TAGS = Tags.of("api", "total","server","xdata");
    public static final  Tags VAR_API_DURATION_TAGS = Tags.of("api", "duration","server","xdata");


    /**
     * 征信上报请求数量
     */
    public static String CREDIT_UPLOAD_REQUEST_COUNT = "credit.upload.request.count";

    /**
     * 征信上报请求成功数量
     */
    public static String CREDIT_UPLOAD_SUCCESS_COUNT = "credit.upload.success.count";

    /**
     * 征信上报请求失败数量
     */
    public static String CREDIT_UPLOAD_FAIL_COUNT = "credit.upload.fail.count";



    /**
     * 征信上报请求无需重试数量
     */
    public static String CREDIT_UPLOAD_MISS_RETRY_COUNT = "credit.upload.miss.retry.count";


    /**
     * 征信上报耗时
     */
    public static String CREDIT_UPLOAD_DURATION = "credit.upload.duration";


    /**
     * 征信上报重试请求数量
     */
    public static String CREDIT_RETRY_UPLOAD_REQUEST_COUNT = "credit.retry.upload.request.count";

    /**
     * 征信上报重试请求成功数量
     */
    public static String CREDIT_RETRY_UPLOAD_SUCCESS_COUNT = "credit.retry.upload.success.count";

    /**
     * 征信上报重试请求失败数量
     */
    public static String CREDIT_RETRY_UPLOAD_FAIL_COUNT = "credit.retry.upload.fail.count";


    /**
     * 征信上报重试耗时
     */
    public static String CREDIT_RETRY_UPLOAD_DURATION = "credit.retry.upload.duration";



    /**
     * 标准数据源请求数量
     */
    public static String STANDARD_DATASOURCE_REQUEST_COUNT = "standard.datasource.request.count";

    /**
     * 标准数据源请求成功数量
     */
    public static String STANDARD_DATASOURCE_SUCCESS_COUNT = "standard.datasource.success.count";

    /**
     * 标准数据源请求失败数量
     */
    public static String STANDARD_DATASOURCE_FAIL_COUNT = "standard.datasource.fail.count";


    /**
     * 标准数据源请求耗时
     */
    public static String STANDARD_DATASOURCE_DURATION = "standard.datasource.duration";


    /**
     * 标签数据源请求数量
     */
    public static String LABEL_DATASOURCE_REQUEST_COUNT = "label.datasource.request.count";

    /**
     * 标签数据源请求成功数量
     */
    public static String LABEL_DATASOURCE_SUCCESS_COUNT = "label.datasource.success.count";

    /**
     * 标签数据源请求失败数量
     */
    public static String LABEL_DATASOURCE_FAIL_COUNT = "label.datasource.fail.count";


    /**
     * 标签数据源请求耗时
     */
    public static String LABEL_DATASOURCE_DURATION = "label.datasource.duration";



    /**
     * groovy处理数量
     */
    public static String GROOVY_HANDLE_COUNT = "groovy.handle.count";

    /**
     * groovy处理成功数量
     */
    public static String GROOVY_HANDLE_SUCCESS_COUNT = "groovy.handle.success.count";

    /**
     * groovy处理失败数量
     */
    public static String GROOVY_HANDLE_FAIL_COUNT = "groovy.handle.fail.count";


    /**
     * groovy处理耗时
     */
    public static String GROOVY_HANDLE_DURATION = "groovy.handle.duration";



    /**
     * 虚拟数据源请求数量
     */
    public static String VITUAL_DATASOURCEY_REQUEST_COUNT = "vitual.datasource.request.count";

    /**
     * 虚拟数据源请求成功数量
     */
    public static String VITUAL_DATASOURCE_SUCCESS_COUNT = "vitual.datasource.success.count";

    /**
     * 虚拟数据源请求失败数量
     */
    public static String VITUAL_DATASOURCE_FAIL_COUNT = "vitual.datasource.fail.count";


    /**
     * 虚拟数据源请求耗时
     */
    public static String VITUALD_DATASOURCE_DURATION = "vitual.datasource.duration";


    public static class  MetricsFliedTags{
        public static String NAME="name";
        public static String ID_NO="id_no";
        public static String REQUEST_ID="request_id";
        public static String DATASOURCE_ID = "datasource_id";
        public static String DATASOURCE_NAME = "datasource_name";
        public static String PROVIDER = "provider";
        public static String API = "api";
        public static String VAR_CODE = "var_code";
        public static String REQUEST_URL = "request_url";
        public static String SYNC_TYPE = "sync_type";
        public static String COLLECT_STAGE = "collect_stage";
        public static String GROOVY_STAGE = "groovy_stage";
        public static String CREDIT_CHANNEL = "credit_channel";
        public static String APP = "app";
        public static String INNER_APP = "inner_app";
        public static String REQUEST_GROUP = "request_group";


    }



}
